projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa4a7ee
)
ubusd: fix ACL check for receiving events
author
Felix Fietkau
<
[email protected]
>
Fri, 17 Oct 2025 11:15:26 +0000
(11:15 +0000)
committer
Felix Fietkau
<
[email protected]
>
Fri, 17 Oct 2025 11:28:09 +0000
(13:28 +0200)
Wildcard event match must also be subject to ACL checks
Reported-by: Karsten Sperling <
[email protected]
>
Signed-off-by: Felix Fietkau <
[email protected]
>
ubusd_event.c
patch
|
blob
|
history
diff --git
a/ubusd_event.c
b/ubusd_event.c
index 09c53dd62e93e6ef82e13bf137248f29e9aff43b..30369690846424d5a7d6909a0a63b5dd4f414faa 100644
(file)
--- a/
ubusd_event.c
+++ b/
ubusd_event.c
@@
-93,7
+93,7
@@
static int ubusd_alloc_event_pattern(struct ubus_client *cl, struct blob_attr *m
len--;
}
- if (
pattern[0] &&
ubusd_acl_check(cl, pattern, NULL, UBUS_ACL_LISTEN))
+ if (ubusd_acl_check(cl, pattern, NULL, UBUS_ACL_LISTEN))
return UBUS_STATUS_PERMISSION_DENIED;
ev = calloc(1, sizeof(*ev) + len + 1);